#include <stdio.h>
#include <stdlib.h>

#define CHARTOINT(a, b, c, d) ((((a) & 0xFF) << 24) | (((a) & 0xFF) << 16) | (((c) & 0xFF) << 8) | (((d) & 0xFF))) 

int main() {
	unsigned int i = 1272487948;
	printf("\33[32m [MARCO][%d]-[%d]-[0x%08x]----\33[0m\n", __LINE__, i, i); 
	unsigned char a = ((i >> 24) & 0xFF);
	unsigned char b = ((i >> 16) & 0xFF);
	unsigned char c = ((i >> 8) & 0xFF);
	unsigned char d = ((i) & 0xFF);
	printf("\33[32m [MARCO][%d]---[%02x]-[%02x]-[%02x]-[%02x]---\33[0m\n", __LINE__, a, b, c, d); 
	unsigned int l = CHARTOINT(a, b, c, d);
	printf("\33[32m [MARCO][%d]-[%d]-[0x%08x]----\33[0m\n", __LINE__, l, l); 
	return 0;
}

